import { getMovieListRequest } from "../../api/movieRequest"
import store from "../store"
import { GETMOVIELIST } from "../constants/movieConst"
export const getMovieListAction = () => {
    return async () => {
        const re = await getMovieListRequest()
        store.dispatch({
            type: GETMOVIELIST,
            data: re.data.data.list
        })
    }
}